/**
 * @Description:
 * @Author: CHEHSHUANG
 * @Date: 2019/2/15
 */

import React, {Component} from 'react';
import { Modal} from 'antd';
import ShowTable from "./ShowTable";


class ModalBox extends Component {
  render() {
    const {title, visible, onCancel, ...others} = this.props;
    return (
      <Modal
        width={850}
        destroyOnClose={true}
        maskClosable={false}
        title={title}
        visible={visible}
        footer={null}
        onCancel={onCancel}
      >
        <ShowTable {...others}/>
      </Modal>
    );
  }
}

export default ModalBox;


